﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BLL.Services.Books.Listing
{
    public class BooksListing
    {
        public BooksListing()
        {
            Books = new List<Book>();
            Filter = new BookFilter();
        }

        public List<Book> Books { get; set; }

        public int Page { get; set; }

        public int TotalPages { get; set; }

        public int Size { get; set; }

        public int Direction { get; set; }

        public string Column { get; set; }

        public BookFilter Filter { get; set; }

        public class Book
        {
            public int BookId { get; set; }

            public string Name { get; set; }

            public string ImageUrl { get; set; }

            public List<string> Authors { get; set; }

            public List<string> Categories { get; set; }

            public string ShortContent { get; set; }

            [Display(Name = "Date Of Publish")]
            public string DateOfPublish { get; set; }
        }
    }
}
